#pragma once
#pragma once
#include <ilcplex\ilocplexi.h>
#include "Datas.h"


class VRPTW
{

public:
  VRPTW(Node& node);

  void BuildModel(Node& node);


  bool GetValue(Node& node);

  void ShowSolver(Node& node);

  void OptSolu(Node& node);

  int doubleCompare(double a, double b) {
    if (a - b > x_gap)
      return 1;
    if (b - a > x_gap)
      return -1;
    return 0;
  }
private:
  int MaxTime = 1e5;
  int MinTime = 0;
  Node node;
  double x_gap = 1e-5;
};